package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.annotation.TableAlias;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 专业
 *
 * @author flyme
 * @date 2021-08-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_subject")
@TableAlias("subject")
@ApiModel(value = "BusSubject对象", description = "专业")
public class BusSubject extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "subjectId", type = IdType.ASSIGN_ID)
    private Long subjectId;

    @ApiModelProperty(value = "标题")
    private String subjectTitle;

    @ApiModelProperty(value = "父ID")
    private Long parentId;

    @ApiModelProperty(value = "状态(0待审核,1:审核拒绝,2:审核通过)")
    private Integer state;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "创建人")
    private Long userId;

    @ApiModelProperty(value = "创建人类型")
    private String userType;

    @ApiModelProperty(value = "备注")
    private String remark;


}
